#include "thread_pool.hpp"
#include "Task.hpp"

#include<ctime>
#include<cstdlib>

using namespace ns_thread_pool;
using namespace ns_task;

int main(){
    Thread_pool<Task>* tp = new Thread_pool<Task>();
    tp->InitThreadPool();
    srand((long long)time(nullptr));
    while(true){
        Task t(rand()%20+1, rand()%10+1, "+-*/%"[rand()%5]);
        tp->PushTask(t);
        sleep(1);
    }
    return 0;
}